package com.zd.service.lmpl;/**
 * @Description: CostbreakdownzdServicelmpl
 * @Author:pioneer
 * @Date: 2021-07-29
 * @Version:v1.0
 */

import com.zd.mapper.CostbreakdownzdMapper;
import com.zd.service.lnter.CostbreakdownzdServicelnter;
import com.zzg.entity.Costbreakdown;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description: CostbreakdownzdServicelmpl
 * @Author:pioneer
 * @Date: 2021-07-29
 * @Version:v1.0
 */
@Service
public class CostbreakdownzdServicelmpl implements CostbreakdownzdServicelnter {
    @Autowired
    private CostbreakdownzdMapper costbreakdownzdMapper;
    /**
     * 根据财务管理id查询费用明细
     *
     * @param costbreakdownId 财务id
     * @return 费用明细对象
     */
    @Override
    public Costbreakdown getCostbreakdownByid(String costbreakdownId) {
        return costbreakdownzdMapper.getCostbreakdownByid (costbreakdownId);
    }

    /**
     * 根据财务管理id修改费用明细
     *
     * @param costbreakdown 费用明细对象
     * @return 返回数值判断是否成功
     */
    @Override
    public int updateCostbreakdown(Costbreakdown costbreakdown) {
        return costbreakdownzdMapper.updateCostbreakdown (costbreakdown);
    }
}
